package com.woniuxy.microfixeddepositserver.feign;

import com.woniuxy.bean.BillBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: masterhai
 * @date: 2021/4/12:10:30
 * @description:
 */
@FeignClient(value = "cd-finance-micro-sys-server")
public interface MemberFeign {
    //查询会员信息
    @PostMapping(value = "/member/info", produces = MediaType.APPLICATION_JSON_VALUE)
    String getInfo (@RequestParam("username") String username);

    //扣除余额,如果需要增加传递负数
    @PostMapping(value = "/member/balancepayment", produces = MediaType.APPLICATION_JSON_VALUE)
    String balancePayment (@RequestBody BillBean billBean);
}
